
/* -------------------------------------------------------------------------------- */
/* ! based  */
/* -------------------------------------------------------------------------------- */
/* tavolozza */
:root{
    --primary:#8c1818 ;
    --secondary:#cd8a8a;
    --accent:#1c4514;
    --light:#384f40;
    --darck:#161040;



}
/* reset */
*{
    margin: 0;
    padding: 0;
}

a{
    text-decoration: none;
}

li{
    list-style-type: none;
}

/* tipografia */
body{
    font-family: 'Kreon', serif;
    
}
h1, h2, h3, h4, h5, h6{
    font-family: 'Nabla', cursive;
    font-size: 1.4em;
}
p, ul, a{
    font-family: 'Kreon', serif;
    font-size: 1.2em;
    line-height: 1.2em;
    margin-bottom: 15px;
}
p .leading{
    font-size: 1.4em;
    line-height: 1.4em;
}
p span{
    font-weight: 900;
    color: cornflowerblue;
}
.cta{
    display: block;
    border: 1px solid var(--primary);
    font-weight: 900;
    color: var(--secondary);
    padding: 12px;
    border-radius: 12px;
    width: fit-content;
    margin: 0 auto;
    text-transform: uppercase;
}
.cta:hover{
    background-color: #161040;
    color: #fff;
}

/* riuso */
.res{
    width: 100%;
    max-width: 400px;
}
/* -------------------------------------------------------------------------------- */
/* ! Mobile first */
/* -------------------------------------------------------------------------------- */

/* grid */
.grid{
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    padding: 20px;
    gap: 10px;
}
/* navigazione */


.site-nav h1{
    border-bottom: 2px solid var(--primary);
    grid-column: 2/5;
    justify-self: center;
    z-index: 1;
}
.site-nav__menu{
    position: absolute;
    top: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    
}
.open .site-nav__menu{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    max-height: 100%;
    background-color: var(--darck);
    width: 100%;
    height: 100vh;
    
    display: flex;


}
.site-nav__hamburger{
    grid-column: 5/8;
    justify-self: end;
    cursor: pointer;
    z-index: 1;
}
.welcome h2{
    grid-column: 2/5;
    justify-self: center;
}
/* #welcome sarebbe stato comunque valido evitando di cambiare la classe */

.welcome__text{
    grid-column: 2/8;
    align-self: center;
    
}
.site-nav__hamburger .fa-child-reaching{
    font-size: 2em;
}
.welcome__img{
    display: flex;
    justify-content: center;
    grid-column: 2/8;
    margin-bottom: 30px;
}
.welcome__img img{
    border-radius: 10%;
}
#libreria h2{
    grid-column: 1/9;
    display: flex;
    justify-content: center;
}
.libreria__text{
    grid-column: 1/9;
}
.libreria__img{
 grid-column: 1/9;
 display: flex;
 justify-content: center;
}
.libreria__img img {
    border-radius: 10%;
}
/* book */
#book h2{
    grid-column: 1/9;
    display: flex;
    justify-content: center;
}
.book__text {
    grid-column: 1/9;
}

.book__img {
    grid-column: 1/9;
    display: flex;
    align-items: center;
    flex-direction: column;

}

/* footer */
#prefooter{
    background: var(--light);
}
footer{
    padding: 30px 0px;
}
footer *{
    color: #fff;
}
.credits{
    grid-column: 1/5;
    display: flex;
    align-items: center;
}
.social{
    grid-column: 6/9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}




